package com.atgm.mall.gmmailmember.feign;

import com.atgm.common.utils.R;
import com.atgm.mall.gmmailmember.feign.fallback.CouponFeignFallbackService;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "gm-mall-coupon", fallback = CouponFeignFallbackService.class, qualifier = "couponFeignService")
public interface CouponFeignService {

    @GetMapping("/gmmallcoupon/goodssale/couponInfo/{id}")
    R getGoodsSaleInfoByGoodsId(@PathVariable("id") Long goodsId);

}
